import http from './http.js'

import {
	url_1,
	url_2,
	url_3
} from './url.js'
var http1 = new http(url_1);
var http2 = new http(url_2);
var http3 = new http(url_3);

// 获取电表数据
export const getMeter = params => http1.get('/api/meter', params);
// 获取智能模块状态
export const getSmart = params => http1.get('/api/smart', params);
// 获取验证码
export const getCodeImg = params => http1.get('/auth/code', params);
// 登录接口
export const login = params => http1.post('/auth/login', params);
// 向客户端发送反馈意见接口
export const putSendFeedBackMsg = params => http1.post('/api/feedback', params);
// 获取我的信息接口
export const getMyMessage = params => http1.get('/api/feedback', params);
// 获取订单信息
export const getOrder = params => http1.get('/api/cabinetLog', params);
// 获取充电桩信息
export const getCabinet = params => http1.get('/api/cabinet', params);
// 控制充电桩开门充电
export const cabinetControl = params => http1.put('/api/cabinet/control', params);
